home *** CD-ROM | disk | FTP | other *** search
- {
- [Scriptsettings]
- Scriptname=Get the latest TSW news
- ExecuteOnStartup=0
- ExecuteOnlyOnce=0
- }
- program TSWBlog;
-
- procedure FormResize(Sender: TObject);
- var
- W: TWebBrowser;
- F: TForm;
- P: TPanel;
- begin
- W := GetGlobalVar('BlogBrowser');
- P := GetGlobalVar('BlogPanel');
- W.SetBounds(1, 1, P.Width-1, P.Height-1);
- end;
-
- var
- W: TWebBrowser;
- F: TForm;
- P: TPanel;
- begin
- F := TForm.Create(nil);
- F.Width := 500;
- F.Height := 350;
- F.Position := poScreenCenter;
- F.Caption := 'TSW Blog';
- P := TPanel.Create(F);
- P.Parent := F;
- P.Align := alClient;
- P.BevelOuter := bvNone;
- P.Name := 'ThisPanel';
- SetGlobalVar('BlogPanel', P);
- W := TWebBrowser.Create(P);
- W.ParentWindow := P.Handle;
- W.SetBounds(1, 1, P.Width-1, P.Height-1);
- W.Navigate('http://www.tsware.net/tswblog.php');
- SetGlobalVar('BlogBrowser', W);
- P.OnResize := 'FormResize';
- F.ShowModal;
- F.Release;
- W.Free;
- end;
-